
/*******************************************************
*  Team name: FTPMP
*  Class involve: Card
*  Version, Author, History of modification: 
*  Ver 1.0, Ada,
*  -add Card Constructor, getCID, getType, getInfo, 
*  
*  Ver 1.1, Ada,
*  -add getValidRoleCard, drawRoleCard, removeCard
*  
*  Ver 1.2, Ada,
*  -add drawSwitchRoleCard, getToolCard, getStanceCard
*******************************************************/


package entity;
import java.awt.*;
import javax.swing.*;

public class Card { 
    private int CID;  
    private String info; 
    private String type;
    private int count=0;

    // Default Constructor
    public Card() 
    { 
    	this.CID=count;
    	count++;
    	this.info="";
    	this.type="";
    }
 
    //Conversion  Constructor
    public Card(String type , String info) 
    {   
    	this.type=type;
    	this.info=info;
    	this.CID=count;
    	count++;
    }
	
	//GET Function
	public int getCID() 
	{
        return this.CID;
    }
	public String getType() 
	{
        return this.type;
    }
    public String getInfo() 
    {
        return info;
    }
	
	
	//SET Function
    public void setSE(int CID) {
        this.CID = CID;
    }
    
    public void setInfo(String info) {
        this.info = info;
    }
	
	//Other Function	
	public void getValidRoleCard(){}
	public void drawRoleCard(){}
	public void removeCard(int pid){}
	public void drawSwitchRoleCard(int pid,int numTool,int numStacne){}
	public void getToolCard(int pid){}
	public void getStanceCard(int pid){}
	
}  